import request from "@/utils/request";

/**
 * @description 登录接口
 * @data {name:String,password:String}
 */
export function login(loginInfo){
    return request({
        method:"POST",
        url:'/frontend/sso/login',
        data:loginInfo
    })
}
/**
 * @description 退出登录接口
 * @data {name:String,password:String}
 */

export function logout(data){
    return request({
        method:"POST",
        url:'/frontend/sso/logout',
        data:data
    })
}
/**
 * @description 重置密码接口
 * @data {password:String,secret_answer:String}
 */
export function PasswordReset(data){
    return request({
        method:"POST",
        url:'/frontend/sso/password/update',
        data:data
    })
  }
/**
 * @description 查询个人信息
 */
export function getMyUserInfo(){
    return request({
        method:"POST",
        url:'/frontend/my/info/',
    })
}

/**
 * @description 注册账号
 */
export function register(data){
    return request({
        method:"POST",
        url:'/frontend/sso/register',
        data:data
    })
}
